<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 500px;
            height: 500px;
            border: 5px red solid;
            background-image: url("../images/img.jpg");
            background-repeat: no-repeat;
            background-repeat: repeat-x;
            background-repeat: repeat-y;
        }
    </style>
</head>
<body>
    <!--
    1.repeat
    2.no-repeat
    3.repeat-x
    4.repeat-y
    -->
    <div></div>
</body>
</html>